package com.ruoyi.Test;

import org.springframework.web.bind.annotation.*;

@RestController
public class GreetingController {

    @RequestMapping("/greet")
    public String greet(@RequestParam String firstName, @RequestParam String lastName) {
        return "Hello, " + firstName + " " + lastName + "!";
    }
}
